package centralizedme;

/**
 *
 * @author palexander
 */
public class FoafPhone extends RdfProperty {
    // phone number of the person this foaf document refers to
    private String phone;
    // the name for this property
    private final String propName = "foaf:phone";

    /**
     * Constructor for foafName, relies on RdfProperty super constructor.
     * @param givenname  <code>String</code> of the property's givenname.
     */
    public FoafPhone(String phone) {
        super("foaf:phone");
        this.phone = "tel:" + phone;
    }

    /**
     * Represent this property as a string.
     * @return  <code>String</code> representation of this property.
     */
    public String toString() {
        return getOpenProp() + phone + getCloseProp();
    }
}
